# -*- coding:utf-8 -*-
# @Time: 2020/9/15 12:40
# @Author: 周铖鑫
# @Description：figure图像
# @File: UseFigure.py
import  matplotlib.pyplot as plt
import numpy as np
x=np.linspace(-3,3,50)
y1=x*2+5
y2=x**2
plt.figure(num=1,figsize=(8,5))
plt.plot(x,y1)

plt.figure(num=2,figsize=(8,8))
#放置两条线
plt.plot(x,y2)
plt.plot(x,y1,color='red',linewidth=1.0,linestyle='--')
plt.show()
